# spruce

**Table Of Contents**

- [Intro](#intro)
    - [License](#license)
- [Learn](#learn)
    - [Module](#module)
         - [Use](#use)
- [Start](#start)
    - [Get](#get)
    - [Update](#update)

## Intro

Go library for controlling the terminal using escape codes.

### License

The [goescape](https://notabug.org/_percival/goescape) is free software: you can redistribute it and/or modify it under the terms of the [GNU General Public License Version 3](https://gnu.org/licenses/gpl-3.0.html).

## Learn

### Module

For more information about the module, use the [link](https://pkg.go.dev/notabug.org/_percival/goescape).

### Use

Print "example" in red:

```
fmt.Printf("%sexample%s\n", goescape.Color().Foreground.Red, goescape.Color().Foreground.Reset))
```

or

```
set := goescape.New(goescape.Color().Foreground.Red)

fmt.Printf("%sexample%s\n", set.String(), goescape.Color().Foreground.Reset)
```

## Start

### Get

To get, execute the command:

**~ $** `go get -v notabug.org/_percival/goescape@latest`

### Update

To update, execute the command:

**~ $** `go get -u -v notabug.org/_percival/goescape@latest`
